#ifndef ENTRY_H
#define ENTRY_H

#include <string>
#include <time.h>

#include "Types.h"

namespace logging {

class Entry 
{
public:
	Entry(const char* ns, Level level, const char* message);
	~Entry() {}
	
	time_t getTimestamp() const { return _timestamp; }
	Level getLevel() const { return _level; }
	char* getNamespace() const { return _namespace; }
	char* getMessage() const { return _message; }

private:
	time_t _timestamp;
	Level _level;
	char *_namespace;
	char* _message;
};

}

#endif /* ENTRY_H */
